<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/2/26
 * Time: 17:40
 */

namespace app\api\controller;
use app\common\controller\HomeBase;
use think\Controller;
use think\Db;
use email\Smtp;

class Check extends HomeBase
{
    public function index($limit = 15){
        $result = Db::name('adcount')->where('status',1)->order('n_count_visit desc')->limit($limit)->column('count_url');
//        dump($result);
//        return thinkJson($result);
        return $this->thinkJson($result);
    }
}